package com.budwk.app.miniapp.common.enums;

import lombok.Getter;

import java.util.Arrays;
import java.util.stream.Collectors;

/**
 * 安全隐患状态a17
 */
@Getter
public enum ProblemFeedbackEnum {

    A("产业发展局","18586880765" ),
    B("投资促进局","18586880765" ),
    C("商务局","18586880765" ),
    D("财政金融局","18586880765" ),
    E("开发建设局","18586880765" ),
    F("应急管理局","18586880765" ),
    H("开发建设局","18586880765" ),
    I("政务服务中心","18586880765" ),
    J("产业创新中心","18586880765" ),
    K("应急管理服务保障中心","13368509503" ),
    AQ("组织人事部","18586880765" ),
    AB("党政办公室","18586880765" ),
    AC("保税业务与口岸服务中心","18586880765" ),
    AR("未知","18586880765" );
    private String community;
    private String phone;
    ProblemFeedbackEnum(String community, String phone ) {
        this.community = community;
        this.phone = phone;
    }

    public static String getPhoneByCommunity(String community){
        String  phone = Arrays.asList(ProblemFeedbackEnum.values())
                .stream()
                .filter(e -> community .equals(e.getCommunity()) )
                .collect(Collectors.toList())
                .get(0)
                .getPhone();
        return  phone;
    }

}
